//
// Created by wkm on 2023-12-06.
//

#ifndef MYSYSTEMCLEARNING_DEMUX_H
#define MYSYSTEMCLEARNING_DEMUX_H

#include "systemc.h"

const int IN_WIDTH = 2;
const int OUT_WIDTH = 4;

SC_MODULE(demux) {
    sc_in<sc_uint<IN_WIDTH>> a;
    sc_out<sc_uint<OUT_WIDTH>> z;

    void prc_demux();

    SC_CTOR(demux) {
        SC_METHOD(prc_demux);
        sensitive << a;
    }
};

#endif //MYSYSTEMCLEARNING_DEMUX_H
